package P123;

public class PC {
     private CPU cpu;
     private HardDisk HD;
     public void setCpu(CPU cpu){
         this.cpu = cpu;
     }
     public  void setHardDisk(HardDisk hardDisk){
         this.HD = hardDisk;
     }
     public void show(){
         System.out.println("CPU速度为: "+cpu.getSpeed() );
         System.out.println("HardDisk容量为: "+HD.getAmount());
     }
}
